/**
 * 2520. 统计能整除数字的位数
 */
public class No2520 {
    public int countDigits(int num) {
        int ans = 0;
        String s = num + "";
        for (int i = 0; i < s.length(); i++) {
            if (num % (s.charAt(i) - '0') == 0) ans++;
        }
        return ans;
    }
}
